Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Given a Transport Stream file containing Metadata as PES packets with metadata format as "WVTT", the new
rftsvtt
filter reads the content of each PES packet and creates a WebVTT cue output that can be used by thedasher
to create a subtitles track for both DASH and HLS.Running GPAC as:
/home/juan/workspace/git/gpac/bin/gcc/gpac \ -i /home/juan/workspace/notebooks/GStreamer/out_subtitle.ts \ rftsvtt \ -o "/home/juan/workspace/notebooks/GStreamer/gpac/hls/playlist.m3u8:gpac:buf=-150:seg_sync=no:segdur=1.0:cdur=1.0:hlsc=true:cmaf=cmf2:dmode=static:template=segment:rawsub=true" \ -graph
creates a filter graph as follows:
Notice that, as this is HLS, the
rawsub=true
flag is used. The output playlist defines the subtitles track:and
playlist_1.m3u8
where each
.vtt
file contains 1 second of data.